package com.example.demo;

import java.util.Scanner;

public class MyScanner {
    int int1;
    long long1;
    float float1;
    double double1;
    String string1;

    public MyScanner(String input1) {
        Scanner scanner1 = new Scanner(input1);
        int1 = scanner1.nextInt();
        long1 = scanner1.nextLong();
        float1 = scanner1.nextFloat();
        double1 = scanner1.nextDouble();
        string1 = scanner1.next();
    }

    @Override
    public String toString() {
        return "MyScanner{" +
                "int1=" + int1 +
                ", long1=" + long1 +
                ", float1=" + float1 +
                ", double1=" + double1 +
                ", string1='" + string1 + '\'' +
                '}';
    }

    public static void main(String[] args) {
        MyScanner myScanner1 = new MyScanner("1 2 3.3 4.4 five");
        System.out.print(myScanner1);
    }
}
